﻿using System;
using System.IO;

namespace Voize
{
    internal class CLog
    {
        internal static void Write(string msg)
        {
            StreamWriter wr;
            string path = Environment.GetEnvironmentVariable("APPDATA");
            path += @"\Voize\Scrobbler.log";

            //if (!File.Exists(path))
            //    File.Create(path);

            wr = new StreamWriter(path,true);
            wr.WriteLine(msg);

            wr.Close();

        }
    }
}
